<!--boostrap modal -->
<div class="modal fade bs-example-modal-sm" tabindex="-1" id="myModal" role="dialog" aria-labelledby="mySmallModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content" style="z-index: 1050">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">流程编辑</h4>
            </div>
            <div class="modal-body">
                <form class="form-edit" id="form-edit">
                    <div class="input-group">
                        <div class="input-group-addon">编号</div>
                        <input type="text" class="form-control param" name="code" desc="编号" mast="1" value="{$data.code|default=''}" placeholder="编号"/>
                    </div>
                    <div class="input-group">
                        <div class="input-group-addon">名称</div>
                        <input type="text" class="form-control param" name="name" desc="名称" mast="1" value="{$data.name|default=''}" placeholder="名称"/>
                    </div>
                    <div class="input-group">
                        <div class="input-group-addon">排序</div>
                        <input type="number" class="form-control param" name="sort" desc="顺序" mast="1" value="{$data.sort|default=''}" placeholder="顺序"/>
                    </div>
                    <div class="input-group">
                        <div class="input-group-addon">申请数量</div>
                        <input type="number" class="form-control param" name="count" desc="顺序" mast="0" value="{$data.count|default=''}" placeholder="数量"/>
                    </div>
                    <div class="input-group">
                        <div class="input-group-addon">草稿</div>
                        <select name="draft" desc="草稿" class="form-control param">
                            <option value="0" <if condition="empty($data) or $data['draft'] eq 0">selected='selected'</if> >否</option>
                            <option value="1" <if condition="!empty($data) and $data['draft'] eq 1">selected='selected'</if> >是</option>
                        </select>
                    </div>
                    <div class="input-group">
                        <div class="input-group-addon">状态</div>
                        <div class="input-status">
                            <label class="radio-inline">
                                <input type="radio" class="status param" <?php if(empty($data) || $data['status']==1) echo "checked='checked'"?> name="status" value="1"/>启用
                            </label>
                            <label class="radio-inline">
                                <input type="radio"  class="status param" <?php if(!empty($data) && $data['status']==0) echo "checked='checked'"?> name="status" value="0" />停用
                            </label>
                        </div>
                    </div>
                    <div class="input-group">
                        <div class="input-group-addon">备注</div>
                        <textarea name="remark" class="form-control param">{$data.remark|default=''}</textarea>
                    </div>
                    <input type="hidden" name="id" class="param" value="{$data.id|default=''}" id="modal-id"/>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" id="btn-save" class="btn btn-primary">保存</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<include file="Auth@Public:edit"/>